package com.vue.admin.service.common.mybatis.mapper;

import com.vue.admin.service.common.mybatis.entity.Page;
import com.vue.admin.service.common.mybatis.entity.Query;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * @program: tk-robot-service
 * @description:
 * @author: zhangyangyang
 * @create: 2020-01-07 10:05
 **/
@RegisterMapper
public interface BaseDefSelectListMapper<T> {
    /**
     * 分页查询列表
     * @param page
     * @param query
     * @return
     */
    List<T> listForPage(Page<T> page, Query query);

    /**
     * 查询列表
     * @param query
     * @return
     */
    List<T> list(Query query);
}
